
document.addEventListener('DOMContentLoaded', function () {
    axios.get('http://example.com:3000/api/data')
    .then(response => console.log(response.data))
    .catch(error => console.error('Error:', error));
});